package com.learn.sb.sblearnshardingjdbc.service.impl;

import com.learn.sb.sblearnshardingjdbc.dao.UserDao;
import com.learn.sb.sblearnshardingjdbc.pojo.User;
import com.learn.sb.sblearnshardingjdbc.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {

	@Autowired
	private UserDao userDao;

	@Override
	public User getUser(Integer id) {
		return userDao.getUser(id);
	}
}
